﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data.OracleClient;

namespace WindowsFormsApplication1
{
    static class Program
    {
        /// <summary>
        /// 해당 응용 프로그램의 주 진입점입니다.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmMain());

            //OracleConnection oraConn = new OracleConnection(Properties.Settings.Default.ORAGIS);
            //oraConn.Open();

            //Console.WriteLine("오라클 서버버전:" + oraConn.ServerVersion);
            //Console.WriteLine("오라클 데이터소스:" + oraConn.DataSource);
            //Console.WriteLine("오라클 연결문자열:" + oraConn.ConnectionString);
            //Console.ReadLine();

            //string strQuery = "SELECT * FROM TAB";
            //OracleCommand oraCmd= new OracleCommand(strQuery, oraConn);



            //OracleDataReader odr = oraCmd.ExecuteReader();
            //for (int i = 0; i < odr.FieldCount; i++)
            //{
            //    if (i != odr.FieldCount - 1)
            //    {
            //        Console.Write(odr.GetName(i) + "\t");
            //    }
            //    else
            //    {
            //        Console.Write(odr.GetName(i));
            //    }
            //}
            //Console.WriteLine("\n=========================================");


            //int count = 0;
            //while (odr.Read())
            //{
            //    for (int i = 0; i < odr.FieldCount; i++)
            //    {
            //        Console.Write(odr.GetValue(i) + " ");
            //    }
            //    Console.WriteLine();
            //    count++;
            //}
            //Console.WriteLine("\n총 레코드 수는 {0}개 입니다",count);

            //odr.Close();
            //oraConn.Close();
        }
    }
}
